class TimedyaBaobiaoBean {
  bool success;
  String message;
  int code;
  Result result;
  int timestamp;

  TimedyaBaobiaoBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  TimedyaBaobiaoBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    result =
    json['result'] != null ? new Result.fromJson(json['result']) : null;
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.toJson();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String companyName;
  double lastAccumulation;
  String serialNumber;
  double lastBalance;
  double caloriesSold;
  double salesAmount;
  String userName;
  List<TimeDayReportDtos> timeDayReportDtos;

  Result(
      {this.companyName,
        this.lastAccumulation,
        this.serialNumber,
        this.lastBalance,
        this.caloriesSold,
        this.salesAmount,
        this.userName,
        this.timeDayReportDtos});

  Result.fromJson(Map<String, dynamic> json) {
    companyName = json['companyName'];
    lastAccumulation = json['lastAccumulation'];
    serialNumber = json['serialNumber'];
    lastBalance = json['lastBalance'];
    caloriesSold = json['caloriesSold'];
    salesAmount = json['salesAmount'];
    userName = json['userName'];
    if (json['timeDayReportDtos'] != null) {
      timeDayReportDtos = new List<TimeDayReportDtos>();
      json['timeDayReportDtos'].forEach((v) {
        timeDayReportDtos.add(new TimeDayReportDtos.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['companyName'] = this.companyName;
    data['lastAccumulation'] = this.lastAccumulation;
    data['serialNumber'] = this.serialNumber;
    data['lastBalance'] = this.lastBalance;
    data['caloriesSold'] = this.caloriesSold;
    data['salesAmount'] = this.salesAmount;
    data['userName'] = this.userName;
    if (this.timeDayReportDtos != null) {
      data['timeDayReportDtos'] =
          this.timeDayReportDtos.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class TimeDayReportDtos {
  String dayOfDate;
  List<TimeFlowReportDayVos> timeFlowReportDayVos;

  TimeDayReportDtos({this.dayOfDate, this.timeFlowReportDayVos});

  TimeDayReportDtos.fromJson(Map<String, dynamic> json) {
    dayOfDate = json['dayOfDate'];
    if (json['timeFlowReportDayVos'] != null) {
      timeFlowReportDayVos = new List<TimeFlowReportDayVos>();
      json['timeFlowReportDayVos'].forEach((v) {
        timeFlowReportDayVos.add(new TimeFlowReportDayVos.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['dayOfDate'] = this.dayOfDate;
    if (this.timeFlowReportDayVos != null) {
      data['timeFlowReportDayVos'] =
          this.timeFlowReportDayVos.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class TimeFlowReportDayVos {
  int id;
  String dayOfDate;
  String times;
  String accumulation;
  double dailyAmount;
  double correctionAmount;
  double settlementAmount;
  String price;
  double money;
  int addCounts;
  double addMoney;
  String addDate;
  double balance;
  String remark;
  String serialNumber;

  TimeFlowReportDayVos(
      {this.id,
        this.times,
        this.accumulation,
        this.dailyAmount,
        this.correctionAmount,
        this.settlementAmount,
        this.price,
        this.money,
        this.addCounts,
        this.addMoney,
        this.addDate,
        this.balance,
        this.remark,
        this.serialNumber});

  TimeFlowReportDayVos.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    times = json['times'];
    accumulation = json['accumulation'];
    dailyAmount = json['dailyAmount'];
    correctionAmount = json['correctionAmount'];
    settlementAmount = json['settlementAmount'];
    price = json['price'];
    money = json['money'];
    addCounts = json['addCounts'];
    addMoney = json['addMoney'];
    addDate = json['addDate'];
    balance = json['balance'];
    remark = json['remark'];
    serialNumber = json['serialNumber'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['times'] = this.times;
    data['accumulation'] = this.accumulation;
    data['dailyAmount'] = this.dailyAmount;
    data['correctionAmount'] = this.correctionAmount;
    data['settlementAmount'] = this.settlementAmount;
    data['price'] = this.price;
    data['money'] = this.money;
    data['addCounts'] = this.addCounts;
    data['addMoney'] = this.addMoney;
    data['addDate'] = this.addDate;
    data['balance'] = this.balance;
    data['remark'] = this.remark;
    data['serialNumber'] = this.serialNumber;
    return data;
  }
}